@{
    Layout=null;
}
@using MvcDemo.Models;
@model IEnumerable<Student>;
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        <input type="text" placeholder="请输入关键字" id="keywork">
        <input type="button" value="查询" id="Query">
        <input type="button" value="新增" id="add">
        <div id="bigdiv">
            <table>
                <tr>
                    <th>id</th>
                    <th>姓名</th>
                    <th>班级</th>
                    <th>年龄</th>
                    <th>操作</th>
                </tr>
                @foreach (var item in Model)
                {
                     <tr class="tab">
                    <th>@item.id</th>
                    <th>@item.Name</th>
                    <th>@item.classname</th>
                    <th>@item.age</th>
                    <th><input class="btnEdit" type="button" value="编辑" onclick="btnEdit(@item.id)">
                    <input class="btnDel" type="button" value="删除" onclick="btnDel(@item.id)"></th>
                </tr>
                }
            </table>
        </div>
    </div>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script src="~/js/js.js"></script>
</body>
</html>